<table width="100%" class="table table-striped table-bordered table-hover">
    <thead>
        <tr>
            <th>顺序</th>
            <th>名称</th>
            <th>内容</th>
            <th>状态</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
        {volist name="course" id="vo"}
        <tr>
            <td>{$vo.cos_sort}</td>
            <td>{$vo.cos_title}</td>
            <td>
                <?php $con = unserialize($vo['cos_content']); ?>
                <?php foreach($con as $key=>$v){ ?>
                <div class="label label-primary"><?php echo $v ?></div>
                <?php } ?>
            </td>
                <td>
                    {switch name="vo.cos_state"}
                    {case value="0"}<div class="label label-default" data-id="{$vo.cos_id}" role="state"><span class="fa fa-flag"></span></div>{/case}
                    {case value="1"}<div class="label label-default" data-id="{$vo.cos_id}" role="state"><span class="fa fa-power-off"></span></div>{/case}
                    {/switch}
            </td>
            <td>
                <div data-href="/index.php/admin/course/edit.html?id={$vo.cos_id}" type="button" class="btn btn-success btn-xs" onclick="edu.edit(this)"  data-text="课程编辑" data-id="course-{$vo.cos_id}">编辑</div>
                <div data-href="remove.html" data-id="{$vo.cos_id}" role="remove" type="button" class="btn btn-danger btn-xs">删除</div>
            </td>

        </tr>
        {/volist}
    </tbody>
</table>
<script type="text/javascript" src="/admin/script/course/ls.js"></script>
